<include file="../header" />
<body>
<div class="wraper">
    <div class="load">
        <img class="load-bee" src="/assets/repairnew/images/load-bee.png"/>

    </div>
    <div class="top">
        <p>
            <a href="#" class="iconfont fl-left"></a>
            <span class="fl-left">{BEESCRM:$app_name}</span>
            <a href="{BEESCRM::U('repairnew/repairnewReceive/orderWrite',array('repairId'=>$repairId))}" class="text-right fl-right">订单录入</a>
        </p>
    </div>
    <div class="contain actived">
    	<if condition="$list neq null">
    	<volist name="list" id="vo">
        <a href="/index.php?g=repairnew&m=repairnewReceive&a=index&repairId={BEESCRM:$repairId}&order_id={BEESCRM:$vo.order_id}" class="list" style="padding:20px 5px">
            <p>{BEESCRM:$vo['content']|mb_substr=0,25,'utf8'}</p>
            <p class="sub">{BEESCRM:$vo['create_time']|date="Y-m-d",###}&nbsp;&nbsp;报修人：<if condition="$vo['real_name'] neq ''">{BEESCRM:$vo['real_name']|mb_substr=0,1,'utf8'}某某<else/>未知</if>&nbsp;&nbsp;{BEESCRM:$vo.community_name}{BEESCRM:$vo.building_name}{BEESCRM:$vo.room_name}
            <span class="send fl-right">
            <if condition="$vo['status'] eq 1">
                    已下单
            <elseif condition="$vo['status'] eq 2"/>
                    待接单    
            <elseif condition="$vo['status'] eq 3 and $vo['order_type'] neq 4"/>
                <font color="green">已接单</font>
            <elseif condition="$vo['status'] eq 3 and $vo['order_type'] eq 4 and $vo['audit'] eq 0 and $repair['audit'] eq 1" />
                <font color="#ccc">待审核</font>
            <elseif condition="$vo['status'] eq 3 and $vo['order_type'] eq 4 and $vo['audit'] eq 1 and $repair['audit'] eq 1" />
                <font color="green">已接单</font>
            <elseif condition="$vo['status'] eq 3 and $vo['order_type'] eq 4 and $vo['audit'] eq 2 and $repair['audit'] eq 1" />
                <font color="#ccc">未通过</font>
            <elseif condition="$vo['status'] eq 3 and $v0['order_type'] eq 4 and $repair['audit'] eq 0"/>
                <font color="green">已接单</font>
            <elseif condition="$vo['status'] eq 4"/>
                    已到达    
            <elseif condition="$vo['status'] eq 5 and $vo['order_type'] neq 5"/>
                    已维修
            <elseif condition="$vo['status'] eq 5 and $vo['order_type'] eq 5 and $vo['audit'] eq 0 and $repair['audit'] eq 1"/>
                <font color="#ccc">待审核</font>
            <elseif condition="$vo['status'] eq 5 and $vo['order_type'] eq 5 and $vo['audit'] eq 1 and $repair['audit'] eq 1"/>
                    已维修
            <elseif condition="$vo['status'] eq 5 and $vo['order_type'] eq 5 and $vo['audit'] eq 2 and $repair['audit'] eq 1"/>
                <font color="#ccc">未通过</font>
            <elseif condition="$vo['status'] eq 5 and $v0['order_type'] eq 5 and $repair['audit'] eq 0"/>
                    已维修
            <elseif condition="$vo['status'] eq 7"/>
                    已评价  
            <elseif condition="$vo['status'] eq 10"/>
                    待转派
            <elseif condition="$vo['status'] eq 11"/>
                    已转派        
            <elseif condition="$vo['status'] eq 12"/>
                    已返修                                     
            <elseif condition="$vo['status'] eq 0" />
                <font color="green">已取消</font>    
            </if>
            </span>
            </p>
        </a>
        </volist>
        <else/>
        <div style="width: 40%;margin: 20% auto 0;">
            <img src="/assets/repairnew/images/nonelist.png"/>
        </div>
        </if>
    </div>
    <!-- <a href="#" class="more">加载更多</a> -->
    <div class="marginb-50"></div>
    <include file="../nav" />
</div>

<include file="../commonJS" />
</body>
<script type="text/javascript">
	$(function(){
		var timeOut="{BEESCRM:$timeOut}";
		if(timeOut==1){
			$.confirm('现在非维修工上班时间，订单不能及时处理');
		}
	})
</script>
</html>
